package easy;

public class a2169_得到0的操作数 {
    public int countOperations(int num1, int num2) {
        if (num1==0||num2==0) return 0;
        int count=0;
        while (num1!=num2){
            if (num1>num2){
                num1=num1-num2;
            }else {
                num2=num2-num1;
            }
            count++;
        }
        return ++count;
    }
}
